#include <iostream>
#include "transform.hpp"
using namespace std;

int main()
{
//Histogram Equalization 

    //python .\encode.py --file_path .\pic\...
    Image test_origin("in.txt");
    Image test_equalized;
    test_equalized = test_origin.equalizeHist();
    test_origin.drawHist("test_origin.txt");
    test_equalized.drawHist("test_equalized.txt");
    test_equalized.dump2File();
    //python .\decode.py

//Convolution

    //python .\encode.py --file_path .\pic\...
    Mask mask1(1); //you can also choose 2,3,4
    Image test_convotion;
    test_convotion = mask1*test_origin;
    test_convotion.dump2File();
    //python .\decode.py 

    //pause and do followings (for decode.py can now only decode out.txt)

    Mask mask2(1,1,1,1,1,1,1,1,1);//define a mask by your self  //blur the image 
    test_convotion = mask2*test_origin;
    test_convotion.dump2File();
    //python .\decode.py 

}